import request from "@/request"

export function register(user) {
    return request({
        method: 'post',
        url: '/register',
        data:user
    })
}
export function login(user) {
    return request({
        method: 'post',
        url: '/login',
        data:user
    })
}

export function logout() {
    return request({
        method: 'get',
        url: '/logout',
    })
}

